<?php
/*
	[Phpup.Net!] (C)2009-2011 Phpup.net.
	This is NOT a freeware, use is subject to license terms

	$Id: global.func.php 2010-08-24 10:42 $
*/

if(!defined('IN_PHPUP')) {
	exit('Access Denied');
}
function check_cate($title)
{
	foreach($GLOBALS['cate'] as $k=>$v)
	{
		if($v['keywords'])
		{
			foreach($v['keywords'] as $val)
			{
				if(strpos($val,'a'.$title))
				{
					return $k;
				}
			}
		}
	}
	return 0;
}